const baseUrl = "http://10.222.145.51:8992";
export const uploadImage = (name, content) => {
    let parm = {
        'Content-Type': 'application/json;charset=utf-8',
        method: 'POST',
        body: JSON.stringify({ "image": content, "name": name }),
        timeout: 5000
    }
    return fetch(baseUrl + "/predict", parm).then(res => res.json())
}